﻿using System;
using System.Collections.Generic;

using Moe.ECamel.Common.Contracts;
using Moe.ECamel.Common.Entities;

namespace Moe.ECamel.Client.ServiceProxies
{
	/// <summary>
	/// Service Agent for Library services.
	/// </summary>
	public class LibraryServiceProxy : ECamelServiceProxy<ILibraryService>, ILibraryService
	{
		public Library GetLibraryById(int libraryId)
		{
			return ServiceProxy.GetLibraryById(libraryId);
		}

		public List<Library> GetAllLibraries()
		{
			return ServiceProxy.GetAllLibraries();
		}
		
		public ECamelError CreateLibrary(Library library)
		{
			return ServiceProxy.CreateLibrary(library);
		}
		
		public ECamelError UpdateLibrary(Library library)
		{
			return ServiceProxy.UpdateLibrary(library);
		}

		public ECamelError UpdateLibraryStatus(int libraryId, bool active)
		{
			return ServiceProxy.UpdateLibraryStatus(libraryId, active);
		}
	}
}